from abc import ABC, abstractmethod

import pandas as pd


class IndexDataProvider(ABC):

    @abstractmethod
    def get_index_stock_info(self) -> pd.DataFrame:
        """获取股票指数信息一览表"""
        pass
    
    @abstractmethod
    def get_index_stock_cons_weight(self, symbol: str) -> pd.DataFrame:
        """获取中证指数成份股权重"""
        pass
